package com.crealth.db;

import com.crealth.manager.MybatisManager;
import com.crealth.model.MobileAttributionModel;

public class MobileAttributionDb {
	
	public static void insertMobileAttribution(MobileAttributionModel mobileModel) {
		MybatisManager.mobileMapper.insertMobileAttribution(mobileModel);
		MybatisManager.commit();
	}
	
	public static Integer selectMobileExist(String mobiNum) {
		if (mobiNum == null || mobiNum.length() != 7) {
			return null;
		}
		Integer res = MybatisManager.mobileMapper.selectMobileExist(mobiNum);
		
		return res;
	}
	
}
